
;; ------ Common Set -----
(global-hl-line-mode 1)
(add-hook 'emacs-lisp-mode-hook 'show-paren-mode)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(window-divider-mode -1)

;; ------font ------
(set-fontset-font (frame-parameter nil 'font)
		  'han '("宋体"."unicode-bmp"))


;;设置默认读入文件编码 
(prefer-coding-system 'utf-8) 
;;设置写入文件编码 
(setq default-buffer-file-coding-system 'utf-8)

;;;;;;全屏
(toggle-frame-fullscreen)
;; 关闭启动帮助画面
(setq inhibit-splash-screen 1)
;;(global-hl-line-mode t)
(setq make-backup-files nil)
 
;; recent open files
(require 'recentf)
(setq recentf-max-menu-item 10)
 
(delete-selection-mode 1)
 
;;下面的代码可以 Emacs 自动加载外部修改过的文件。
(global-auto-revert-mode 1)
 
(setq auto-save-default nil)
 
;; theme
(load-theme 'monokai 1)


(message "common")
(provide 'common)
